﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prop
{
    class Food:Item
    {
        private bool isVeg;
       /* private int productId;
        private string productName;
        private double unitPrice;
        private int noInStock;*/

        public Food(int id, string name,int price, int numInStock, bool isVeg)
            :base(id,name,price,numInStock)
        {
            
            this.isVeg = isVeg;
        }

        
        public bool IsVeg
        {
            get { return isVeg; }
            set
            {
                this.isVeg = value;
            }
        }
        public override String getInfo()
        {
            string veg;
            if (isVeg)
            {
                veg = "Vegatarian";
            }
            else
            {
                veg = "Not vegatarian";
            }
            return base.getInfo() +" "+ veg; 
        }
    }
}
